<%# Call with partial("layouts/otherdocs", locals: { skip: "Terraform CLI", header: "Optional Header" }) -%>
<%
  skip ||= ""
  header ||= "Other Docs"
  other_docs = {
    "Terraform CLI" => "/docs/cli-index.html",
    "Terraform Cloud" => "/docs/cloud/index.html",
    "Terraform Enterprise" => "/docs/enterprise/index.html",
    "Provider References" => "/docs/providers/index.html",
    "Terraform Glossary" => "/docs/glossary.html",
    "Introduction to Terraform" => "/intro/index.html",
    "Guides and Whitepapers" => "/guides/index.html",
    "Terraform Registry" => "/docs/registry/index.html",
    "Terraform GitHub Actions" => "/docs/github-actions/index.html",
    "Extending Terraform" => "/docs/extend/index.html"
  }
-%>
    <h4 id="otherdocs"><%= header %></h4>

    <ul class="nav docs-sidenav">
<% other_docs.each do |name, path| -%>
<% unless name.downcase == skip.downcase -%>
      <li>
        <a class="back" href="<%= path %>"><%= name %></a>
      </li>
<% end %>
<% end -%>
    </ul>
